
package com.fdl.testConnection;

import org.acegisecurity.providers.encoding.Md5PasswordEncoder;

/**
 * MD5测试类
 * @project: hb-intra
 * @Date:2010-8-11
 * @version  1.0
 * @Company: 33e9
 * @author zhangYong.huang
 */
public class MD5test {

	
	public static void main(String[] args) {
		Md5PasswordEncoder md5pws = new Md5PasswordEncoder();
		String md5Str = md5pws.encodePassword("root", "1");
//		System.out.println(md5pws.isPasswordValid("4c8ad5e466349de113426b9e654f41e6", "root", ""));
		System.out.println(md5Str);
	}
}

